/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.dao;

import com.xy.biz.mes.domain.po.ManufactureTaskEquipmentPO;
import com.xy.biz.mes.domain.query.ManufactureTaskEquipmentQuery;
import com.xy.biz.mes.domain.query.ManufactureTaskRecordQuery;

import java.util.Collection;
import java.util.List;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureTaskEquipmentDao {

	/**
	 * 保存
	 *
	 * @param manufactureTaskEquipmentPO
	 */
	int saveManufactureTaskEquipment(ManufactureTaskEquipmentPO manufactureTaskEquipmentPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureTaskEquipment(Collection<ManufactureTaskEquipmentPO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureTaskEquipmentPO
	 */
	int updateManufactureTaskEquipment(ManufactureTaskEquipmentPO manufactureTaskEquipmentPO);
	int updateAllManufactureTaskEquipment(Collection<ManufactureTaskEquipmentPO> collection);
	int updateManufactureTaskEquipmentByTaskId(ManufactureTaskEquipmentPO manufactureTaskEquipmentPO);

	/**
	 * 删除
	 *
	 * @param manufactureTaskId
	 */
	int deleteManufactureTaskEquipmentByTaskId(Long manufactureTaskId);
	int deleteManufactureTaskEquipment(Collection<Long> collection);

	/**
	 * 查找一个
	 *
	 * @param manufactureTaskEquipmentId
	 * @return
	 */
	ManufactureTaskEquipmentPO getManufactureTaskEquipment(Long manufactureTaskEquipmentId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ManufactureTaskEquipmentPO> listManufactureTaskEquipmentById(Collection<Long> collection);

	/**
	 * 查找多条
	 *
	 * @param query
	 * @return
	 */
	List<ManufactureTaskEquipmentPO> listManufactureTaskEquipment(ManufactureTaskEquipmentQuery query);

}
